import App from './App'
import store from 'store/index.js'
import util from 'common/util.js'
import http from 'common/js/http/'
import interceptor from 'common/js/http/interceptor.js'
import api from './api'

Vue.prototype.$store = store
Vue.prototype.$u = util
Vue.prototype.$http = http
Vue.prototype.$api = api

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif